{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { genComponentStyleHook } from '../../theme/internal';\nimport { getCopiableStyles, getEditableStyles, getEllipsisStyles, getLinkStyles, getResetStyles, getTitleStyles } from './mixins';\nimport { operationUnit } from '../../style';\nvar genTypographyStyle = function genTypographyStyle(token) {\n  var _Object$assign2;\n  var componentCls = token.componentCls,\n    sizeMarginHeadingVerticalStart = token.sizeMarginHeadingVerticalStart;\n  return _defineProperty({}, componentCls, Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(_defineProperty({\n    color: token.colorText,\n    wordBreak: 'break-word',\n    lineHeight: token.lineHeight,\n    '&&-secondary': {\n      color: token.colorTextDescription\n    },\n    '&&-success': {\n      color: token.colorSuccess\n    },\n    '&&-warning': {\n      color: token.colorWarning\n    },\n    '&&-danger': {\n      color: token.colorError,\n      'a&:active, a&:focus': {\n        color: token.colorErrorActive\n      },\n      'a&:hover': {\n        color: token.colorErrorHover\n      }\n    },\n    '&&-disabled': {\n      color: token.colorTextDisabled,\n      cursor: 'not-allowed',\n      userSelect: 'none'\n    }\n  }, \"\\n        div&,\\n        p\\n      \", {\n    marginBottom: '1em'\n  }), getTitleStyles(token)), (_Object$assign2 = {}, _defineProperty(_Object$assign2, \"\\n      & + h1&,\\n      & + h2&,\\n      & + h3&,\\n      & + h4&,\\n      & + h5&\\n      \", {\n    marginTop: sizeMarginHeadingVerticalStart\n  }), _defineProperty(_Object$assign2, \"\\n      div,\\n      ul,\\n      li,\\n      p,\\n      h1,\\n      h2,\\n      h3,\\n      h4,\\n      h5\", _defineProperty({}, \"\\n        + h1,\\n        + h2,\\n        + h3,\\n        + h4,\\n        + h5\\n        \", {\n    marginTop: sizeMarginHeadingVerticalStart\n  })), _Object$assign2)), getResetStyles()), getLinkStyles(token)), _defineProperty({}, \"\\n        \".concat(componentCls, \"-expand,\\n        \").concat(componentCls, \"-edit,\\n        \").concat(componentCls, \"-copy\\n      \"), Object.assign(Object.assign({}, operationUnit(token)), {\n    marginInlineStart: token.marginXXS\n  }))), getEditableStyles(token)), getCopiableStyles(token)), getEllipsisStyles()), {\n    '&-rtl': {\n      direction: 'rtl'\n    }\n  }));\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Typography', function (token) {\n  return [genTypographyStyle(token)];\n}, {\n  sizeMarginHeadingVerticalStart: '1.2em',\n  sizeMarginHeadingVerticalEnd: '0.5em'\n});","map":{"version":3,"names":["genComponentStyleHook","getCopiableStyles","getEditableStyles","getEllipsisStyles","getLinkStyles","getResetStyles","getTitleStyles","operationUnit","genTypographyStyle","token","componentCls","sizeMarginHeadingVerticalStart","Object","assign","color","colorText","wordBreak","lineHeight","colorTextDescription","colorSuccess","colorWarning","colorError","colorErrorActive","colorErrorHover","colorTextDisabled","cursor","userSelect","marginBottom","marginTop","marginInlineStart","marginXXS","direction","sizeMarginHeadingVerticalEnd"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/typography/style/index.js"],"sourcesContent":["import { genComponentStyleHook } from '../../theme/internal';\nimport { getCopiableStyles, getEditableStyles, getEllipsisStyles, getLinkStyles, getResetStyles, getTitleStyles } from './mixins';\nimport { operationUnit } from '../../style';\nconst genTypographyStyle = token => {\n  const {\n    componentCls,\n    sizeMarginHeadingVerticalStart\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({\n      color: token.colorText,\n      wordBreak: 'break-word',\n      lineHeight: token.lineHeight,\n      '&&-secondary': {\n        color: token.colorTextDescription\n      },\n      '&&-success': {\n        color: token.colorSuccess\n      },\n      '&&-warning': {\n        color: token.colorWarning\n      },\n      '&&-danger': {\n        color: token.colorError,\n        'a&:active, a&:focus': {\n          color: token.colorErrorActive\n        },\n        'a&:hover': {\n          color: token.colorErrorHover\n        }\n      },\n      '&&-disabled': {\n        color: token.colorTextDisabled,\n        cursor: 'not-allowed',\n        userSelect: 'none'\n      },\n      [`\n        div&,\n        p\n      `]: {\n        marginBottom: '1em'\n      }\n    }, getTitleStyles(token)), {\n      [`\n      & + h1&,\n      & + h2&,\n      & + h3&,\n      & + h4&,\n      & + h5&\n      `]: {\n        marginTop: sizeMarginHeadingVerticalStart\n      },\n      [`\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5`]: {\n        [`\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        `]: {\n          marginTop: sizeMarginHeadingVerticalStart\n        }\n      }\n    }), getResetStyles()), getLinkStyles(token)), {\n      // Operation\n      [`\n        ${componentCls}-expand,\n        ${componentCls}-edit,\n        ${componentCls}-copy\n      `]: Object.assign(Object.assign({}, operationUnit(token)), {\n        marginInlineStart: token.marginXXS\n      })\n    }), getEditableStyles(token)), getCopiableStyles(token)), getEllipsisStyles()), {\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Typography', token => [genTypographyStyle(token)], {\n  sizeMarginHeadingVerticalStart: '1.2em',\n  sizeMarginHeadingVerticalEnd: '0.5em'\n});"],"mappings":";AAAA,SAASA,qBAAqB,QAAQ,sBAAsB;AAC5D,SAASC,iBAAiB,EAAEC,iBAAiB,EAAEC,iBAAiB,EAAEC,aAAa,EAAEC,cAAc,EAAEC,cAAc,QAAQ,UAAU;AACjI,SAASC,aAAa,QAAQ,aAAa;AAC3C,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkB,CAAGC,KAAK,EAAI;EAAA;EAClC,IACEC,YAAY,GAEVD,KAAK,CAFPC,YAAY;IACZC,8BAA8B,GAC5BF,KAAK,CADPE,8BAA8B;EAEhC,2BACGD,YAAY,EAAGE,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAACD,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